﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200121D RID: 4637
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartMatchScRsp : IMessage<StartMatchScRsp>, IMessage, IEquatable<StartMatchScRsp>, IDeepCloneable<StartMatchScRsp>, IBufferMessage
	{
		// Token: 0x17003AC2 RID: 15042
		// (get) Token: 0x0600CFDC RID: 53212 RVA: 0x0022FE09 File Offset: 0x0022E009
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartMatchScRsp> Parser
		{
			get
			{
				return StartMatchScRsp._parser;
			}
		}

		// Token: 0x17003AC3 RID: 15043
		// (get) Token: 0x0600CFDD RID: 53213 RVA: 0x0022FE10 File Offset: 0x0022E010
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartMatchScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003AC4 RID: 15044
		// (get) Token: 0x0600CFDE RID: 53214 RVA: 0x0022FE22 File Offset: 0x0022E022
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartMatchScRsp.Descriptor;
			}
		}

		// Token: 0x0600CFDF RID: 53215 RVA: 0x0022FE29 File Offset: 0x0022E029
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartMatchScRsp()
		{
		}

		// Token: 0x0600CFE0 RID: 53216 RVA: 0x0022FE34 File Offset: 0x0022E034
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartMatchScRsp(StartMatchScRsp other) : this()
		{
			this.lobbyExtraInfo_ = ((other.lobbyExtraInfo_ != null) ? other.lobbyExtraInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CFE1 RID: 53217 RVA: 0x0022FE80 File Offset: 0x0022E080
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartMatchScRsp Clone()
		{
			return new StartMatchScRsp(this);
		}

		// Token: 0x17003AC5 RID: 15045
		// (get) Token: 0x0600CFE2 RID: 53218 RVA: 0x0022FE88 File Offset: 0x0022E088
		// (set) Token: 0x0600CFE3 RID: 53219 RVA: 0x0022FE90 File Offset: 0x0022E090
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PlayerExtraInfo LobbyExtraInfo
		{
			get
			{
				return this.lobbyExtraInfo_;
			}
			set
			{
				this.lobbyExtraInfo_ = value;
			}
		}

		// Token: 0x17003AC6 RID: 15046
		// (get) Token: 0x0600CFE4 RID: 53220 RVA: 0x0022FE99 File Offset: 0x0022E099
		// (set) Token: 0x0600CFE5 RID: 53221 RVA: 0x0022FEA1 File Offset: 0x0022E0A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600CFE6 RID: 53222 RVA: 0x0022FEAA File Offset: 0x0022E0AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartMatchScRsp);
		}

		// Token: 0x0600CFE7 RID: 53223 RVA: 0x0022FEB8 File Offset: 0x0022E0B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartMatchScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.LobbyExtraInfo, other.LobbyExtraInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CFE8 RID: 53224 RVA: 0x0022FF08 File Offset: 0x0022E108
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.lobbyExtraInfo_ != null)
			{
				num ^= this.LobbyExtraInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CFE9 RID: 53225 RVA: 0x0022FF5D File Offset: 0x0022E15D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CFEA RID: 53226 RVA: 0x0022FF65 File Offset: 0x0022E165
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CFEB RID: 53227 RVA: 0x0022FF70 File Offset: 0x0022E170
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.lobbyExtraInfo_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.LobbyExtraInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CFEC RID: 53228 RVA: 0x0022FFCC File Offset: 0x0022E1CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.lobbyExtraInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.LobbyExtraInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CFED RID: 53229 RVA: 0x00230024 File Offset: 0x0022E224
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartMatchScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.lobbyExtraInfo_ != null)
			{
				if (this.lobbyExtraInfo_ == null)
				{
					this.LobbyExtraInfo = new PlayerExtraInfo();
				}
				this.LobbyExtraInfo.MergeFrom(other.LobbyExtraInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CFEE RID: 53230 RVA: 0x0023008C File Offset: 0x0022E28C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CFEF RID: 53231 RVA: 0x00230098 File Offset: 0x0022E298
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 122U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.lobbyExtraInfo_ == null)
						{
							this.LobbyExtraInfo = new PlayerExtraInfo();
						}
						input.ReadMessage(this.LobbyExtraInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005352 RID: 21330
		private static readonly MessageParser<StartMatchScRsp> _parser = new MessageParser<StartMatchScRsp>(() => new StartMatchScRsp());

		// Token: 0x04005353 RID: 21331
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005354 RID: 21332
		public const int LobbyExtraInfoFieldNumber = 15;

		// Token: 0x04005355 RID: 21333
		private PlayerExtraInfo lobbyExtraInfo_;

		// Token: 0x04005356 RID: 21334
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04005357 RID: 21335
		private uint retcode_;
	}
}
